Skip to content

Conversation

ngphibang
Copy link
Contributor

@ngphibang ngphibang commented Aug 12, 2025

  • Use normal child nodes for pipes: the pipe nodes are not video interfaces. Describe them as normal child nodes instead of using port/endpoint.
  • Another minor typo fix

The driver instance variable name is inst, not n.

Signed-off-by: Phi Bang Nguyen <[email protected]>
@zephyrbot zephyrbot added platform: STM32 ST Micro STM32 area: Video Video subsystem area: Shields Shields (add-on boards) labels Aug 12, 2025
@ngphibang ngphibang changed the title Fix dcmipp devicetree video: fix dcmipp devicetree Aug 12, 2025
The pipe nodes are not video interfaces. Describe them as normal child
nodes instead of using port/endpoint.

Signed-off-by: Phi Bang Nguyen <[email protected]>
@ngphibang ngphibang force-pushed the fix_dcmipp_devicetree branch from 9dcba5b to 1ea37c5 Compare August 12, 2025 11:32
Copy link

Comment on lines +24 to +32
pipes {
compatible = "st,stm32-dcmipp-pipes";
#address-cells = <1>;
#size-cells = <0>;

port@0 {
pipe_dump: pipe@0 {
reg = <0>;

endpoint {
remote-endpoint-label = "";
bus-type = <VIDEO_BUS_TYPE_PARALLEL>;
};
};
};
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By reviewing #94081, it seems only n6 has multiple pipes and this one has just one pipe ? In this case, pipes {} node is not needed and we can remove compatible string too. Otherwise, need to add an if in the dcmipp driver when retrieving the pipe / pipes:

DT_FOREACH_CHILD_VARGS(DT_INST_CHILD(inst, pipes), DCMIPP_PIPE_INIT_DEFINE, inst);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, only the N6 has several pipe. Others have single pipe. Is that an issue to keep it as you propose with current patch ?
Aka always have pipes { } and below it one or more pipe@x entries ?

@kartben kartben assigned ngphibang and josuah and unassigned kartben Aug 23, 2025
@avolmat-st
Copy link

Thanks @ngphibang for the patches and sorry for the long delay for review/test/reply. I confirm this looks good to me and is working fine.
One small point, it seems to me that, in the 2nd patch, the

#define STM32_DCMIPP_INIT(inst)                                                                    \

part is all modified while actually the only modification is related to the DT_FOREACH_CHILD_VARGS, making it hard to notice.
Could you maybe only modify minimum amount of lines and all other parts ? (were there another difference apart from the DT_FOREACH_CHILD_VARGS part ?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Shields Shields (add-on boards) area: Video Video subsystem platform: STM32 ST Micro STM32
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants